package tech.yixiyun.framework.kuafu.view;

/**
 * 转向
 */
public class DispatchView extends View {
    private String path;

    public DispatchView() {
    }
    public DispatchView(String path) {
        this.path = path;
    }
    @Override
    public void render() {
        try {
            this.getRequest().getRequestDispatcher(path).forward(getRequest(), getResponse());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
